package com.design.pattern.stratogy.duck;

import com.design.pattern.stratogy.Duck;
import com.design.pattern.stratogy.behavior.FlyWithWings;
import com.design.pattern.stratogy.behavior.Quack;

public class RedheadDuck extends Duck {

    public RedheadDuck() {
        flyBehavior = new FlyWithWings();
        quackBehavior = new Quack();
    }

    protected void display() {
        System.out.println("我是一只红头鸭子");
    }
}
